<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jb-aptech毕业设计项目</TITLE>
<meta name="renderer" content="ie-comp">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script src="../../script/common.js"></script>
	<script src="../../script/jquery-3.3.1.min.js"></script>
	<script src="../../script/vue.js"></script>
</head>
<body>

<div id="app">
	<div class="page_title">客户信息管理 > 客户信息</div>
	<div class="button_bar">
		<button class="common_button" onclick="help('');">帮助</button>
		<button class="common_button" onclick="to('linkman.html');">联系人</button>
		<button class="common_button" onclick="to('activities.html');">交往记录</button>
		<button class="common_button" onclick="to('orders.html');">历史订单</button>

		<button class="common_button" onclick="back();">返回</button>
		<button class="common_button" @click="save()">保存</button>
	</div>
	<table class="query_form_table">
		<tr>
			<th>客户编号</th>
			<td v-text="cust.cust_no">KH071202001</td>
			<th>名称</th>
			<td><input v-model="cust.cust_name" value="北京聪海信息科技有限公司" /><span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>地区</th>
			<td>
				<select v-model="cust.cust_region">
					<option>请选择...</option>
					<option selected>北京</option>
					<option value="华北">华北</option>
					<option value="中南">中南</option>
					<option value="东北">东北</option>
					<option value="西部">西部</option>
				</select>
				<span class="red_star">*</span></td>
			<th>客户经理</th>
			<td>
				<select v-model="cust.cust_manager_name">
					<option value="">请选择...</option>
					<option value="小明">小明</option>
					<option value="旺财">旺财</option>
					<option value="球球">球球</option>
					<option value="孙小美">孙小美</option>
					<option value="周洁轮">周洁轮</option>
				</select><span class="red_star">*</span>
			</td>
		</tr>
		<tr>
			<th>客户等级</th>
			<td>
				<select v-model="cust.cust_level_label">
					<option value="">请选择...</option>
					<option value="战略合作伙伴">战略合作伙伴</option>
					<option value="合作伙伴">合作伙伴</option>
					<option value="大客户">大客户</option>
					<option value="重点开发客户">重点开发客户</option>
					<option value="普通客户">普通客户</option>
				</select><span class="red_star">*</span>
			</td>
			<th>　</th>
			<td>　</td>
		</tr>
		<tr>
			<th>客户满意度</th>
			<td>
				<select v-model="cust.cust_satisfy"><option value="">未指定</option>
					<option value="5">☆☆☆☆☆</option>
					<option value="4">☆☆☆☆</option>
					<option value="3">☆☆☆</option>
					<option value="2">☆☆</option>
					<option value="1">☆</option></select><span class="red_star">*</span>
			</td>
			<th>客户信用度</th>
			<td>
				<select v-model="cust.cust_credit"><option value="">未指定</option>
					<option value="5">☆☆☆☆☆</option>
					<option value="4">☆☆☆☆</option>
					<option value="3">☆☆☆</option>
					<option value="2">☆☆</option>
					<option value="1">☆</option></select><span class="red_star">*</span>
			</td>
		</tr>
	</table>
	<br />
	<table class="query_form_table" id="table1">
		<tr>
			<th>地址</th>
			<td><input v-model="cust.cust_addr" value="北京市海淀区成府路702号"  /><span class="red_star">*</span>
			</td>
			<th>邮政编码</th>
			<td><input v-model="cust.cust_zip" value="100027" name="T1" size="20" /><span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>电话</th>
			<td>
				<input v-model="cust.cust_tel" value="010-62283393" name="T4" size="20"  /><span class="red_star">*</span></td>
			<th>传真</th>
			<td>
				<input v-model="cust.cust_fax" value="010-62283396" name="T5" size="20"  /><span class="red_star">*</span>
			</td>
		</tr>
		<tr>
			<th>网址</th>
			<td>
				<input v-model="cust.cust_website" value="www.conghai.com" name="T6" size="20"  /><span class="red_star">*</span>
			</td>
			<th>　</th>
			<td>　</td>
		</tr>
	</table>
	<br />
	<table class="query_form_table" id="table2">
		<tr>
			<th>营业执照注册号</th>
			<td><input v-model="cust.cust_licence_no" value="" name="T13" size="20" /></td>
			<th>法人</th>
			<td><input v-model="cust.cust_chieftain" value="聪颖" name="T3" size="20" /><span class="red_star">*</span>
			</td>
		</tr>
		<tr>
			<th>注册资金（万元）</th>
			<td>
				<input v-model="cust.cust_bankroll" value="" name="T7" size="20" /> </td>
			<th>年营业额</th>
			<td>
				<input v-model="cust.cust_turnover" value="" name="T8" size="20" />
			</td>
		</tr>
		<tr>
			<th>开户银行</th>
			<td>
				<input v-model="cust.cust_bank" value="北京银行 中关村支行" name="T9" size="20" /><span class="red_star">*</span>
			</td>
			<th>银行帐号</th>
			<td><input v-model="cust.cust_bank_account" value="62258827238382838" name="T10" size="20" /><span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>地税登记号</th>
			<td>
				<input v-model="cust.cust_local_tax_no" value="" name="T11" size="20" /></td>
			<th>国税登记号</th>
			<td><input v-model="cust.cust_national_tax_no" value="" name="T12" size="20" /></td>
		</tr>
	</table>
</div>
<p>　</p>
<script>
	const app = new Vue({
		el:'#app',
		data:{
			cust:{
				cust_no:'',
				cust_name:'',
				cust_region:'',
				cust_manager_name:'',
				cust_level:'',
				cust_level_label:'',
				cust_satisfy:'',
				cust_credit:'',
				cust_addr:'',
				cust_zip:'',
				cust_tel:'',
				cust_fax:'',
				cust_website:'',
				cust_licence_no:'',
				cust_chieftain:'',
				cust_bankroll:'',
				cust_turnover:'',
				cust_bank:'',
				cust_bank_account:'',
				cust_local_tax_no:'',
				cust_national_tax_no:'',
				cust_status:'',
			},
		},
		methods:{
			save(){
				$.post("/CstCustomer/update",this.cust,json=>{
					if(json.code=200){
						location="list.html";
					}
				})
			},
		},
		mounted(){
			this.cust=JSON.parse(sessionStorage.getItem("c"))
		}

	});
</script>
</body>
</html>